###
 # @Company: TWL
 # @Author: xue jian
 # @Email: xuejian@kanzhun.com
 # @Date: 2020-04-26 14:55:19
 ###
#!/bin/sh
#riqizizeng
datebeg="2020-04-19"
dateend="2020-04-29"
#read datebeg
#read dateend
beg_s=`date -d "$datebeg" +%s`
end_s=`date -d "$dateend" +%s`
while [ "$beg_s" -le "$end_s" ]
do
tmp=`date -d @$beg_s +"%Y-%m-%d"`
echo $tmp

del_file=/user/datastar/arc/six/warehouse/arc_six_dev/bossrec_train_negative/ds=$tmp
hadoop fs -rm -r $del_file

del_file=/user/datastar/arc/six/warehouse/arc_six_dev/bossrec_train_exposure/ds=$tmp
hadoop fs -rm -r $del_file

del_file=/user/datastar/arc/six/warehouse/arc_six_dev/bossrec_train/ds=$tmp
hadoop fs -rm -r $del_file


del_file=/user/arc_six/pos_neg_sample/neg_sample_out/$tmp
hadoop fs -rm -r $del_file
del_file=/user/arc_six/pos_neg_sample/train_data_out/$tmp
hadoop fs -rm -r $del_file
beg_s=$((beg_s+86400))
done